use tauri::{
    plugin::{Builder, TauriPlugin},
    Runtime,
};

/// Initializes the plugin.
pub fn init<R: Runtime>() -> TauriPlugin<R> {
    Builder::new("crawler")
        .js_init_script(
            include_str!("../tslib-crawler/dist/tslib-crawler.iife.js")
                .replace("__DEBUG__", &format!("{}", true)),
        )
        .build()
}
